<div class="panel panel-default">
    <div class="panel-body">
        <form class="form-inline" action="/tags/add" method="post">
            <div class="form-group">
                <label class="sr-only" for="title">标签名称</label>
                <input type="text" class="form-control" placeholder="填入标签名称" id="title" name="title">
            </div>
            <button type="submit" class="btn btn-primary">添加</button>
        </form>
    </div>
</div>

<div class="row">
    <div class="col-md-12">
        <div class="table-responsive">
            <table class="table table-primary table-striped">
                <thead>
                    <tr>
                        <th>#</th>
                        <th>标签名称</th>
                        <th>文章数量</th>
                        <th>状态</th>
                        <th>创建时间</th>
                        <th>更新时间</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody>
                    <volist name="list" id="vo">
                    <tr>
                        <td>{$vo.tagid}</td>
                        <td>{$vo.tagid|getTag=nickname}</td>
                        <th>{$vo.num}</th>
                        <td>{$vo['status']?'正常':'<font color="red">禁用</font>'}</td>
                        <td>{$vo.createtime|dateFormat}</td>
                        <td>{$vo.updatetime|dateFormat}</td>
                        <td>
                            <div class="btn-group">
                                <empty name="vo.status">
                                <a href="/tags/enable?id={$vo.id}">启用</a>
                                <else/>
                                <a href="/tags/disable?id={$vo.id}">禁用</a>
                                </empty>
                            </div>
                        </td>
                    </tr>
                    </volist>
                </tbody>
            </table>
        </div>
    </div>
</div>

